<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			
			<li class="active">修改住户</li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Zhuhu/save')}">
			<fieldset>
				<input type="text" name="id" style='display: none' value='{$res.0.id}'>
				<div class="control-group">
					<label class="control-label">选择小区:</label>
					<div class="controls">
						<input type="text" name="xiaoqu" value='{$res.0.xiaoqu}'>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">选择楼宇:</label>
					<div class="controls">
						<input type="text" name="louyu" value='{$res.0.louyu}'>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">选择单元号:</label>
					<div class="controls">
						<input type="text" name="danyuan" value='{$res.0.danyuan}'>
					</div>
				</div>
			
				<div class="control-group">
					<label class="control-label">选择房屋:</label>
					<div class="controls">
						<input type="text" name="fanghao" value='{$res.0.fanghao}'>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">姓名:</label>
					<div class="controls">
						<input type="text" name="name" value='{$res.0.name}'>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">性别:</label>
                                        <div class="controls">
                                            <select name="xingbie" class="select_2" id='sex'>
                                                <option value="">---请选择---</option>
                                                <option value="男">男</option>
                                                <option value="女">女</option>
                                            </select>
                                            <script>
                                                document.getElementById("sex").value = "{$res.0.xingbie}";
                                            </script>
                                            <span class="form-required">*</span>
                                        </div>
				</div>
				<div class="control-group">
					<label class="control-label">手机号:</label>
                                        <div class="controls">
				                <input type="text" name="zhphone" value='{$res.0.zhphone}'>
                                                <span class="form-required">*</span>
                                        </div>
                                </div>
				<div class="control-group">
					<label class="control-label">住户身份:</label>
					<div class="controls">
                                                <select name="zhshenfen" class="select_2" id='identity'>
                                                    <option value="">---请选择---</option>
                                                    <option value="未迁入">未迁入</option>
                                                    <option value="业主本人">业主本人</option>
                                                    <option value="亲属">亲属</option>
                                                    <option value="租客">租客</option>
                                                    <option value="其他">其他</option>
                                                    <option value="已迁出">已迁出</option>
                                                </select>
                                            <script>
                                                document.getElementById("identity").value = "{$res.0.zhshenfen}";
                                            </script>
                                                <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">家庭电话:</label>
                                        <div class="controls">
				                <input type="text" name="jtphone" value='{$res.0.jtphone}'>
                                        </div>
                                </div>
				<div class="control-group">
					<label class="control-label">迁入时间:</label>
					<div class="controls">
                                                <input type="text" name="qianrutime" class="js-date date" value="{$res.0.qianrutime}"  autocomplete="off">
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">迁入原因:</label>
					<div class="controls">
						<input type="text" name="qianruyuanyin" value='{$res.0.qianruyuanyin}'>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
				<a class="btn" href="{:U('Guanlixiaoqu/xiaoqulist')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>